﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login_dialog.aspx.cs" Inherits="CRMSystemV2.Web.Login_dialog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        //刷新验证码
        function refreshImgCode() {
            var img = $("#imgcode");
            img.attr("src", "<%=Application["ValidateCodeURL"] %>?temp=" + Math.random());
        } 
        </script>
</head>
<body>
    <div class="pageContent">
        <form method="post" action="/CRMSystemService.asmx/LoginDialog" class="pageForm" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <div class="pageFormContent" layouth="58">
            <div class="unit">
                <label>
                    用户名：</label>
                <input type="text" name="username" size="30" class="required" />
            </div>
            <div class="unit">
                <label>
                    密码：</label>
                <input type="password" name="password" size="30" class="required" />
            </div>
            <div class="unit">
                <label>
                    验证码：</label>
                <input type="text" name="dycode" size="4" maxlength="4" class="required" />
                <img id="imgcode" src="<%=Application["ValidateCodeURL"] %>" /><a href="javascript:refreshImgCode();">刷新验证码</a>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">
                                提交</button></div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">
                                取消</button></div>
                    </div>
                </li>
            </ul>
        </div>
        </form>
    </div>
</body>
</html>
